package com.luguangtao.dao;

import com.luguangtao.entity.IeType;
import com.luguangtao.entity.Insurance;
import com.luguangtao.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface InsuranceDao extends JpaRepository<Insurance,Integer> {
    //判断保险的价格区间
    Page<Insurance> findByInsuranceamountBetween(Pageable pageable,Double am1, Double am2);
    //c)	按投保人姓名查询
    //d)	按被保险人姓名查询
    //e)	按受益人姓名查询
    //f)	按保险种类查询（3分）
    Page<Insurance> findByIeType(Pageable pageable, IeType ieType);

}
